//
//  SEGBillSelectItemTableViewCell.m
//  SEGUhomePropertyBaseService
//
//  Created by Clavis on 2019/3/5.
//  Copyright © 2019 刘山. All rights reserved.
//

#import "SEGBillSelectItemTableViewCell.h"

@interface SEGBillSelectItemTableViewCell ()

@end

@implementation SEGBillSelectItemTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setpUI];
    }
    return self;
}

- (void)setpUI {
    self.radio = ({
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        [button setImage:[UIImage imageWithContentsOfFile:SEGPicName(@"btn_list_select_nor")] forState:UIControlStateNormal];
        [button setImage:[UIImage imageWithContentsOfFile:SEGPicName(@"btn_list_select")] forState:UIControlStateSelected];
        button.userInteractionEnabled = NO;
        [self.contentView addSubview:button];
        button;
    });
    [self.radio mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-15);
        make.width.mas_equalTo(15);
        make.centerY.mas_offset(0);
    }];
    
    self.titleLabel = ({
        UILabel *lable = [[UILabel alloc] init];
        [self.contentView addSubview:lable];
        lable.textColor = kColor_1;
        lable.font = kFont_16;
        lable;
    });
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.offset(0);
        make.left.mas_equalTo(15);
        make.right.equalTo(self.radio.mas_left).offset(-15);
    }];
}

@end
